<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML>
<%@page contentType="text/html; charset=UTF-8" language="java" %>
<% String path = request.getContextPath(); %>
<html xmlns:wb="http://open.weibo.com/wb">
<head>
    <script async="" src="static/web/js/analytics.js"></script>
    <script type="text/javascript" async="" src="static/web/js/conversion.js"></script>
    <script src="static/web/js/allmobilize.min.js" charset="utf-8" id="allmobilize"></script>
    <style type="text/css"></style>
    <meta content="no-siteapp" http-equiv="Cache-Control">
    <link media="handheld" rel="alternate">
    <!-- end 云适配 -->
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>我发布的职位-招聘服务-拉勾网-最专业的互联网招聘平台</title>
    <meta content="23635710066417756375" property="qc:admins">
    <meta name="description" content="拉勾网是3W旗下的互联网领域垂直招聘网站,互联网职业机会尽在拉勾网">
    <meta name="keywords"
          content="拉勾,拉勾网,拉勾招聘,拉钩, 拉钩网 ,互联网招聘,拉勾互联网招聘, 移动互联网招聘, 垂直互联网招聘, 微信招聘, 微博招聘, 拉勾官网, 拉勾百科,跳槽, 高薪职位, 互联网圈子, IT招聘, 职场招聘, 猎头招聘,O2O招聘, LBS招聘, 社交招聘, 校园招聘, 校招,社会招聘,社招">
    <meta content="QIQ6KC1oZ6" name="baidu-site-verification">

    <!-- <div class="web_root"  style="display:none">http://www.lagou.com</div> -->
    <script type="text/javascript">
        var ctx = "http://www.lagou.com";
        console.log(1);
    </script>
    <link href="http://www.lagou.com/images/favicon.ico" rel="Shortcut Icon">
    <link href="/static/web/css/style.css" type="text/css" rel="stylesheet">
    <link href="/static/web/css/external.min.css" type="text/css" rel="stylesheet">
    <link href="/static/web/css/popup.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/static/web/js/jquery.1.10.1.min.js"></script>
    <script src="/static/web/js/jquery.lib.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/static/web/js/ajaxfileupload.js"></script>
    <script src="/static/web/js/additional-methods.js" type="text/javascript"></script>
    <!--[if lte IE 8]>
    <script type="text/javascript" src="/static/web/js/excanvas.js"></script>
    <![endif]-->
    <script type="text/javascript">
        var youdao_conv_id = 271546;
    </script>
    <script src="/static/web/js/conv.js" type="text/javascript"></script>
    <script src="/static/web/js/ajaxCross.json" charset="UTF-8"></script>
</head>
<body>
<jsp:include page="/zhuang/include/header"/><!-- end #header -->
<jsp:include page="/WEB-INF/zhuang/company/sidebar.jsp"></jsp:include><!-- end .sidebar -->
        <div class="content">
            <dl class="company_center_content">
                <dt>
                    <h1>
                        <em></em>
                        已下线职位 <span>（共<i style="color:#fff;font-style:normal" class="count" id="positionNumber">${requestScope.JobCount}</i>个）</span></h1>
                </dt>
                <dd>
                    <form id="searchForm">
                        <c:forEach items="${requestScope.jobs}" var="job">
                            <input type="hidden" value="Publish" name="type">
                            <ul class="reset my_jobs">
                                <li data-id="149594">
                                    <h3>
                                        <a target="_blank" title="随便写" href="http://www.lagou.com/jobs/149594.html">${job.name}</a>
                                        <span>[${job.city.cityName}]</span>
                                    </h3>
                                    <span class="receivedResumeNo"><a
                                            href="unHandleResumes.html?positionId=149594">应聘简历（${job.resumeCount}）</a></span>
                                    <div>${job.natures.title}/ ${job.money.range} / ${job.exRequire.require} / ${job.degree.title}</div>
                                    <div class="c9">发布时间：<fmt:formatDate value="${job.inputTime }" pattern="yyyy-MM-dd HH:mm:ss"/></div>

                                    <div class="links">
                                        <a target="_blank" class="job_edit" href="<%=path%>/zhuang/company/updateJob?OfflineId=${job.id}">编辑</a>
                                        <a class="onlineJob" href="javascript:void(0)" data-id="${job.id}">上线</a>
                                        <a class="job_del" href="javascript:void(0)" data-id="${job.id}">删除</a>
                                    </div>
                                </li>
                            </ul>
                        </c:forEach>




                    </form>
                    <div class="Pagination">
                        ${requestScope.pageInfo.total}条
                        ${requestScope.pageInfo.pages}页
                        <a href="${pageContext.request.contextPath}/zhuang/company/offline?pagernum=1">首页 </a>

                        <c:if test="${requestScope.pageInfo.pageNum gt 1}">
                            <a href="${pageContext.request.contextPath}/zhuang/company/offline?pagernum=${requestScope.pageInfo.pageNum-1}">上一页</a>
                        </c:if>


                        <c:forEach begin="1" end="${requestScope.pageInfo.pages}" var="i">

                            <a href="${pageContext.request.contextPath}/zhuang/company/offline?pagernum=${i}" data-pagenum="${i}"
                                    <c:if test="${i eq requestScope.pageInfo.pageNum}"> class="current" </c:if>>${i}</a>
                        </c:forEach>


                        <c:if test="${requestScope.pageInfo.pageNum lt requestScope.pageInfo.pages}">
                            <a href="${pageContext.request.contextPath}/zhuang/company/offline?pagernum=${requestScope.pageInfo.pageNum+1}">下一页</a>
                        </c:if>
                        <a href="${pageContext.request.contextPath}/zhuang/company/offline?pagernum=${requestScope.pageInfo.pages}">尾页 </a>
                        ${requestScope.pageInfo.pageNum}/${requestScope.pageInfo.pages}页
                    </div>
                </dd>
            </dl>
        </div><!-- end .content -->
        <script src="/static/web/js/job_list.min.js" type="text/javascript"></script>
        <div class="clear"></div>
        <input type="hidden" value="74fb1ce14ebf4e2495270b0fbad64704" id="resubmitToken">
        <a rel="nofollow" title="回到顶部" id="backtop"></a>
    </div><!-- end #container -->
</div><!-- end #body -->
<div id="footer">
    <div class="wrapper">
        <a rel="nofollow" target="_blank" href="../about.jsp">联系我们</a>
        <a target="_blank" href="http://www.lagou.com/af/zhaopin.html">互联网公司导航</a>
        <a rel="nofollow" target="_blank" href="http://e.weibo.com/lagou720">拉勾微博</a>
        <a rel="nofollow" href="javascript:void(0)" class="footer_qr">拉勾微信<i></i></a>
        <div class="copyright">&copy;2013-2014 Lagou <a
                href="http://www.miitbeian.gov.cn/state/outPortal/loginPortal.action"
                target="_blank">京ICP备14023790号-2</a></div>
    </div>
</div>

<script src="/static/web/js/core.min.js" type="text/javascript"></script>
<script src="/static/web/js/popup.min.js" type="text/javascript"></script>
<script src="/static/web/js/tongji.js" type="text/javascript"></script>
<!--  -->
<script src="/static/web/js/analytics01.js" type="text/javascript"></script>
<script type="text/javascript" src="/static/web/js/h.js"></script>
<script type="text/javascript">
    $(function () {
        $('#noticeDot-1').hide();
        $('#noticeTip a.closeNT').click(function () {
            $(this).parent().hide();
        });
    });
    var index = Math.floor(Math.random() * 2);
    var ipArray = new Array('42.62.79.226', '42.62.79.227');
    var url = "ws://" + ipArray[index] + ":18080/wsServlet?code=314873";
    var CallCenter = {
        init: function (url) {
            var _websocket = new WebSocket(url);
            _websocket.onopen = function (evt) {
                console.log("Connected to WebSocket server.");
            };
            _websocket.onclose = function (evt) {
                console.log("Disconnected");
            };
            _websocket.onmessage = function (evt) {
                //alert(evt.data);
                var notice = jQuery.parseJSON(evt.data);
                if (notice.status[0] == 0) {
                    $('#noticeDot-0').hide();
                    $('#noticeTip').hide();
                    $('#noticeNo').text('').show().parent('a').attr('href', ctx + '/mycenter/delivery.html');
                    $('#noticeNoPage').text('').show().parent('a').attr('href', ctx + '/mycenter/delivery.html');
                } else {
                    $('#noticeDot-0').show();
                    $('#noticeTip strong').text(notice.status[0]);
                    $('#noticeTip').show();
                    $('#noticeNo').text('(' + notice.status[0] + ')').show().parent('a').attr('href', ctx + '/mycenter/delivery.html');
                    $('#noticeNoPage').text(' (' + notice.status[0] + ')').show().parent('a').attr('href', ctx + '/mycenter/delivery.html');
                }
                $('#noticeDot-1').hide();
            };
            _websocket.onerror = function (evt) {
                console.log('Error occured: ' + evt);
            };
        }
    };
    CallCenter.init(url);
</script>

<div id="cboxOverlay" style="display: none;"></div>
<div id="colorbox" class="" role="dialog" tabindex="-1" style="display: none;">
    <div id="cboxWrapper">
        <div>
            <div id="cboxTopLeft" style="float: left;"></div>
            <div id="cboxTopCenter" style="float: left;"></div>
            <div id="cboxTopRight" style="float: left;"></div>
        </div>
        <div style="clear: left;">
            <div id="cboxMiddleLeft" style="float: left;"></div>
            <div id="cboxContent" style="float: left;">
                <div id="cboxTitle" style="float: left;"></div>
                <div id="cboxCurrent" style="float: left;"></div>
                <button type="button" id="cboxPrevious"></button>
                <button type="button" id="cboxNext"></button>
                <button id="cboxSlideshow"></button>
                <div id="cboxLoadingOverlay" style="float: left;"></div>
                <div id="cboxLoadingGraphic" style="float: left;"></div>
            </div>
            <div id="cboxMiddleRight" style="float: left;"></div>
        </div>
        <div style="clear: left;">
            <div id="cboxBottomLeft" style="float: left;"></div>
            <div id="cboxBottomCenter" style="float: left;"></div>
            <div id="cboxBottomRight" style="float: left;"></div>
        </div>
    </div>
    <div style="position: absolute; width: 9999px; visibility: hidden; display: none;"></div>
</div>
</body>
</html>
<script>
    var path = "${pageContext.request.contextPath}";
    $(function () {
        $(".job_del").click(function () {
            var id = $(this).data("id");
            var ansswer = confirm("确定删除吗？");
            if(ansswer){
            var count = $(".count").html()-1;
            var count = $(".count").html(count);
            $.get(path+"/zhuang/company/deleteJob",
                {id:id},
                function (data) {
                    console.log(data);
                    $(this).parent().parent().remove();
                }.bind(this));
                jQuery.alertWindow("修改成功");
            }
            else {
                return false;
            }
        });
    });

    $(function () {
        $(".onlineJob").click(function () {
            var id = $(this).data("id");
            var ansswer = confirm("职位上线后将会重新显示给用户，确定上线吗？");
            if(ansswer){
            var count = $(".count").html()-1;
            var count = $(".count").html(count);
            $.get(path+"/zhuang/company/onlineJob",
                {id:id},
                function (data) {
                    console.log(data);
                    $(this).parent().parent().remove();
                }.bind(this));
                jQuery.alertWindow("修改成功");
            }
            else {
                return false;
            }
        });
    });



</script>